package com.atom.app.lifecycle

import android.os.Bundle
import android.view.View
import com.atom.app.lifecycle.base.AppModel
import com.atom.app.lifecycle.base.AppViewModel
import com.atom.app.lifecycle.base.AppViewModelFactory
import com.atom.app.lifecycle.databinding.ActivityDebugBinding
import com.atom.module.mvvm.base.view.activity.AbstractBaseMVVMActivity
import com.atom.module.mvvm.base.viewmodel.AbstractBaseViewModel

class DebugActivity : AbstractBaseMVVMActivity<ActivityDebugBinding, DebugViewModel>() {

    override fun initContentView(savedInstanceState: Bundle?): Int {
        return R.layout.activity_debug
    }

    override fun initViewModel(): DebugViewModel {
        return providerViewModel(AppViewModelFactory, DebugViewModel::class)
    }

    override fun initVariableId(): Int {
        return BR.debug
    }

    override fun initData(view: View) {
        super.initData(view)
        binding.switchLanguage.setOnClickListener {
            // 获取当前语言

            // 弹窗

            // 高亮指定的语言

            // 选择所需要切换的语言

            // 切换挖成

        }
    }
}

class DebugViewModel : AppViewModel<AppModel>(AppModel) {


}